##
# Example Thor instance
#
module YourApp
  class CLI < Thor
    
    desc "say", "Say cheese and receive"
    def say(word)
      if word == 'cheese'
        YourApp.ui.confirm("CHEESE!")
        YourApp.ui.warn("------ --  -- ------ ------ ------ ------")
        YourApp.ui.warn("--     --  -- --     --     --     --")
        YourApp.ui.warn("--     ------ ----   ----   ------ ----")
        YourApp.ui.warn("--     --  -- --     --         -- --")
        YourApp.ui.warn("------ --  -- ------ ------ ------ ------")
        
      else
        YourApp.ui.error("------------------------------------------")
        YourApp.ui.error("\"#{word}\"??  No cheese for you :(")
        YourApp.ui.error("------------------------------------------")
      end
    end
  
    ##
    # For your convenience, override initialize and boot an instance of XCLI::UI::Shell by sending your
    # shell method mixed-in by Cheese.
    # YourApp.ui.confirm("That was good cheese")
    # YourApp.ui.warn("That's stinky cheese")
    # YourApp.ui.error("That was horrible cheese")
    #
    def initialize(*)
      YourApp.shell = shell
      super
    end
  end
end